﻿namespace Decorator_mode
{
    /// <summary>
    /// 服装类
    /// </summary>
    public class Finery:Person
    {
        protected Person component;
        /// <summary>
        /// 打扮
        /// </summary>
        /// <param name="component"></param>
        public void Decorate(Person component)
        {
            this.component = component;
        }
        public override void Show()
        {
            if(component != null) {
                component.Show();
            }
        }
    }
}
